package com.example.partner.service;

import com.example.partner.common.BaseResponse;
import com.example.partner.model.domain.User;
import com.example.partner.model.vo.UserVo;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface FollowService {

    @GET("api/follow")
    Call<BaseResponse<Boolean>> follow(@Query("id") Long id,@Query("loginUserId") Long loginUserId,@Query("isFollow") Boolean isFollow);
    @GET("api/follow/or/not")
    Call<BaseResponse<Boolean>> isFollow(@Query("userId") Long userId,@Query("loginUserId") Long loginUserId);


    @GET("api/follow/myFollow")
    Call<BaseResponse<List<User>>> searchMyFollow(@Query("loginUserId") Long loginUserId);

    @GET("api/follow/myFollow/count")
    Call<BaseResponse<Integer>> countMyFollow(@Query("loginUserId") Long loginUserId);
    @GET("api/follow/common")
    Call<BaseResponse<List<UserVo>>> followCommons(@Query("id") Long userId, @Query("loginUserId") Long loginUserId);
}
